<div class="search">
    <input type="text" class="input1" [(ngModel)]="keyword" (keyup)="doAdd($event)">
    <hr>
    <h3>待办事项</h3>
    <ul *ngFor="let item of todoList;let i=index" [hidden]="item.status==1">
        <li>
            <input type="checkbox" [(ngModel)]="item.status">{{item.title}} <button (click)="deleteHistory(i)">X</button>
        </li>
    </ul>
    <h3>已完成事项</h3>
    <ul *ngFor="let item of todoList;let i=index" [hidden]="item.status==0">
        <li>
            <input type="checkbox" [(ngModel)]="item.status">{{item.title}} <button (click)="deleteHistory(i)">X</button>
        </li>
    </ul>
</div>